package org.gourpg.model.menu;

/**
 * 菜单配置实体
 */
public class MenuDetail {
    /**
     * 菜单ID，菜单的主键
     */
    private Integer menuId;

    /**
     * 菜单上级ID，菜单的主键
     */
    private Integer menuParentId;

    /**
     * 菜单主功能的链接，点开之后就在主页显示
     */
    private String menuMainUrl;

    /**
     * 菜单名称，在主页标签中显示
     */
    private String menuName;

    /**
     * 菜单类型（暂无），字典：MENU_TYPE
     */
    private String menuType;

    /**
     * 菜单说明
     */
    private String menuRemark;

    public MenuDetail() {
    }

    public Integer getMenuId() {
        return this.menuId;
    }

    public Integer getMenuParentId() {
        return this.menuParentId;
    }

    public String getMenuMainUrl() {
        return this.menuMainUrl;
    }

    public String getMenuName() {
        return this.menuName;
    }

    public String getMenuType() {
        return this.menuType;
    }

    public String getMenuRemark() {
        return this.menuRemark;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    public void setMenuParentId(Integer menuParentId) {
        this.menuParentId = menuParentId;
    }

    public void setMenuMainUrl(String menuMainUrl) {
        this.menuMainUrl = menuMainUrl;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public void setMenuType(String menuType) {
        this.menuType = menuType;
    }

    public void setMenuRemark(String menuRemark) {
        this.menuRemark = menuRemark;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof MenuDetail)) return false;
        final MenuDetail other = (MenuDetail) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$menuId = this.getMenuId();
        final Object other$menuId = other.getMenuId();
        if (this$menuId == null ? other$menuId != null : !this$menuId.equals(other$menuId)) return false;
        final Object this$menuParentId = this.getMenuParentId();
        final Object other$menuParentId = other.getMenuParentId();
        if (this$menuParentId == null ? other$menuParentId != null : !this$menuParentId.equals(other$menuParentId))
            return false;
        final Object this$menuMainUrl = this.getMenuMainUrl();
        final Object other$menuMainUrl = other.getMenuMainUrl();
        if (this$menuMainUrl == null ? other$menuMainUrl != null : !this$menuMainUrl.equals(other$menuMainUrl))
            return false;
        final Object this$menuName = this.getMenuName();
        final Object other$menuName = other.getMenuName();
        if (this$menuName == null ? other$menuName != null : !this$menuName.equals(other$menuName)) return false;
        final Object this$menuType = this.getMenuType();
        final Object other$menuType = other.getMenuType();
        if (this$menuType == null ? other$menuType != null : !this$menuType.equals(other$menuType)) return false;
        final Object this$menuRemark = this.getMenuRemark();
        final Object other$menuRemark = other.getMenuRemark();
        if (this$menuRemark == null ? other$menuRemark != null : !this$menuRemark.equals(other$menuRemark))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof MenuDetail;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $menuId = this.getMenuId();
        result = result * PRIME + ($menuId == null ? 43 : $menuId.hashCode());
        final Object $menuParentId = this.getMenuParentId();
        result = result * PRIME + ($menuParentId == null ? 43 : $menuParentId.hashCode());
        final Object $menuMainUrl = this.getMenuMainUrl();
        result = result * PRIME + ($menuMainUrl == null ? 43 : $menuMainUrl.hashCode());
        final Object $menuName = this.getMenuName();
        result = result * PRIME + ($menuName == null ? 43 : $menuName.hashCode());
        final Object $menuType = this.getMenuType();
        result = result * PRIME + ($menuType == null ? 43 : $menuType.hashCode());
        final Object $menuRemark = this.getMenuRemark();
        result = result * PRIME + ($menuRemark == null ? 43 : $menuRemark.hashCode());
        return result;
    }

    public String toString() {
        return "MenuDetail(menuId=" + this.getMenuId() + ", menuParentId=" + this.getMenuParentId() + ", menuMainUrl=" + this.getMenuMainUrl() + ", menuName=" + this.getMenuName() + ", menuType=" + this.getMenuType() + ", menuRemark=" + this.getMenuRemark() + ")";
    }
}
